package com.assignwork.service;

import com.assignwork.dto.AssignWorkDTO;
import com.assignwork.dto.WorkArrangeOtherSearchDTO;
import com.assignwork.dto.WorkArrangeOtherSubmitDTO;
import com.assignwork.entity.WorkArrangeOther;
import com.assignwork.vo.WorkArrangeOtherPageVO;
import com.assignwork.vo.WorkArrangeOtherVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.core.secure.BladeUser;

/**
 * @ClassName IWorkArrangeOtherService
 * @Description 其他配工作业接口
 * @Author dujianyu
 * @Date 2023/12/11 7:58
 */
public interface IWorkArrangeOtherService extends BaseService<WorkArrangeOther> {
    /**
     * 新建或修改
     * @param dto 数据
     * @return Boolean
     * @author dujianyu
     * @since 2023/12/11 13:15
     */
    Boolean submitWaOther(WorkArrangeOtherSubmitDTO dto);

    /**
     *
     * @param
     * @return
     * @author dujianyu
     * @since 2023/12/11 14:07
     */
    IPage<WorkArrangeOtherPageVO> selectWaOtherPage(WorkArrangeOtherSearchDTO dto, IPage<WorkArrangeOtherPageVO> page);

    /**
     * 根据主键ID级联删除配工
     * @param id 主键ID
     * @return boolean
     * @author dujianyu
     * @since 2023/12/13 11:38
     */
    boolean removeWaOther(Long id);

    IPage<WorkArrangeOtherVO> pageWorkArrangeOther(BladeUser bladeUser, IPage<WorkArrangeOtherVO> page, AssignWorkDTO dto);
}
